<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__tcpwm__functions__quaddec.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__tcpwm.html">TCPWM        (Timer Counter PWM)</a> &raquo; <a class="el" href="group__group__tcpwm__quaddec.html">Quadrature Decoder (TCPWM)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad1949f233fc99ae5681094b5f6a499bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#gad1949f233fc99ae5681094b5f6a499bc">Cy_TCPWM_QuadDec_Init</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, <a class="el" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a> const *config)</td></tr>
<tr class="memdesc:gad1949f233fc99ae5681094b5f6a499bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the counter in the TCPWM block for the QuadDec operation.  <a href="#gad1949f233fc99ae5681094b5f6a499bc">More...</a><br /></td></tr>
<tr class="separator:gad1949f233fc99ae5681094b5f6a499bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa82082c6d45aeda630fba873d15cc205"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#gaa82082c6d45aeda630fba873d15cc205">Cy_TCPWM_QuadDec_DeInit</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, <a class="el" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a> const *config)</td></tr>
<tr class="memdesc:gaa82082c6d45aeda630fba873d15cc205"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes the counter in the TCPWM block, returns register values to default.  <a href="#gaa82082c6d45aeda630fba873d15cc205">More...</a><br /></td></tr>
<tr class="separator:gaa82082c6d45aeda630fba873d15cc205"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga749543ff6e63948f009d4d67f3875b53"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga749543ff6e63948f009d4d67f3875b53">Cy_TCPWM_QuadDec_Enable</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga749543ff6e63948f009d4d67f3875b53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the counter in the TCPWM block for the QuadDec operation.  <a href="#ga749543ff6e63948f009d4d67f3875b53">More...</a><br /></td></tr>
<tr class="separator:ga749543ff6e63948f009d4d67f3875b53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabaf6e9fd4b30c5bf35cf45ff3ab57f68"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#gabaf6e9fd4b30c5bf35cf45ff3ab57f68">Cy_TCPWM_QuadDec_Disable</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gabaf6e9fd4b30c5bf35cf45ff3ab57f68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the counter in the TCPWM block.  <a href="#gabaf6e9fd4b30c5bf35cf45ff3ab57f68">More...</a><br /></td></tr>
<tr class="separator:gabaf6e9fd4b30c5bf35cf45ff3ab57f68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga44dc33f42820e7539bcac89efc9418db"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga44dc33f42820e7539bcac89efc9418db">Cy_TCPWM_QuadDec_GetStatus</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga44dc33f42820e7539bcac89efc9418db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the status of the QuadDec whether it is running or not.  <a href="#ga44dc33f42820e7539bcac89efc9418db">More...</a><br /></td></tr>
<tr class="separator:ga44dc33f42820e7539bcac89efc9418db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaacd82b81ec3a504c3628727e61d866d7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#gaacd82b81ec3a504c3628727e61d866d7">Cy_TCPWM_QuadDec_GetCapture0Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gaacd82b81ec3a504c3628727e61d866d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the capture value.  <a href="#gaacd82b81ec3a504c3628727e61d866d7">More...</a><br /></td></tr>
<tr class="separator:gaacd82b81ec3a504c3628727e61d866d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6792f4bd0fe698328cbb487cc46e53cb"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga6792f4bd0fe698328cbb487cc46e53cb">Cy_TCPWM_QuadDec_GetCapture0BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga6792f4bd0fe698328cbb487cc46e53cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the buffered capture value.  <a href="#ga6792f4bd0fe698328cbb487cc46e53cb">More...</a><br /></td></tr>
<tr class="separator:ga6792f4bd0fe698328cbb487cc46e53cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa8538a498c6bf6030a9a9c3d4cfaec8d"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#gaa8538a498c6bf6030a9a9c3d4cfaec8d">Cy_TCPWM_QuadDec_SetCompare0Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compare0)</td></tr>
<tr class="memdesc:gaa8538a498c6bf6030a9a9c3d4cfaec8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the compare value for Compare0 when the compare mode is enabled.  <a href="#gaa8538a498c6bf6030a9a9c3d4cfaec8d">More...</a><br /></td></tr>
<tr class="separator:gaa8538a498c6bf6030a9a9c3d4cfaec8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac0819a3dafbb55d93d00ab68db3f3f53"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#gac0819a3dafbb55d93d00ab68db3f3f53">Cy_TCPWM_QuadDec_GetCompare0Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gac0819a3dafbb55d93d00ab68db3f3f53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns compare 0 value.  <a href="#gac0819a3dafbb55d93d00ab68db3f3f53">More...</a><br /></td></tr>
<tr class="separator:gac0819a3dafbb55d93d00ab68db3f3f53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga581b385538b49cb689d5ee3c0ca4ede9"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga581b385538b49cb689d5ee3c0ca4ede9">Cy_TCPWM_QuadDec_SetCompare0BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compareBuf0)</td></tr>
<tr class="memdesc:ga581b385538b49cb689d5ee3c0ca4ede9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the Buffered Compare 0 value when the compare mode is enabled.  <a href="#ga581b385538b49cb689d5ee3c0ca4ede9">More...</a><br /></td></tr>
<tr class="separator:ga581b385538b49cb689d5ee3c0ca4ede9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8241af740cee0d91c5ab839308eab0a5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga8241af740cee0d91c5ab839308eab0a5">Cy_TCPWM_QuadDec_GetCompare0BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga8241af740cee0d91c5ab839308eab0a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns Buffered Compare 0 Value.  <a href="#ga8241af740cee0d91c5ab839308eab0a5">More...</a><br /></td></tr>
<tr class="separator:ga8241af740cee0d91c5ab839308eab0a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga86f74f160f2b7a5b8f61f424546e10c9"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga86f74f160f2b7a5b8f61f424546e10c9">Cy_TCPWM_QuadDec_EnableCompare0Swap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga86f74f160f2b7a5b8f61f424546e10c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the comparison swap of compare 0 and compareBuf 0 when the comparison value is true.  <a href="#ga86f74f160f2b7a5b8f61f424546e10c9">More...</a><br /></td></tr>
<tr class="separator:ga86f74f160f2b7a5b8f61f424546e10c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8e28d44c620903493a666dbacbcd0c60"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga8e28d44c620903493a666dbacbcd0c60">Cy_TCPWM_QuadDec_SetCounter</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t count)</td></tr>
<tr class="memdesc:ga8e28d44c620903493a666dbacbcd0c60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of the counter.  <a href="#ga8e28d44c620903493a666dbacbcd0c60">More...</a><br /></td></tr>
<tr class="separator:ga8e28d44c620903493a666dbacbcd0c60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63db0601fd880a5afaddd753fb2d7919"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga63db0601fd880a5afaddd753fb2d7919">Cy_TCPWM_QuadDec_GetCounter</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga63db0601fd880a5afaddd753fb2d7919"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value in the counter.  <a href="#ga63db0601fd880a5afaddd753fb2d7919">More...</a><br /></td></tr>
<tr class="separator:ga63db0601fd880a5afaddd753fb2d7919"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c58e92f541802bdd79435131ec69bd0"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga3c58e92f541802bdd79435131ec69bd0">Cy_TCPWM_QuadDec_GetCapture1Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga3c58e92f541802bdd79435131ec69bd0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns capture 1 value when capture mode is enabled.  <a href="#ga3c58e92f541802bdd79435131ec69bd0">More...</a><br /></td></tr>
<tr class="separator:ga3c58e92f541802bdd79435131ec69bd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8fe6995ae9949b8c827ba510851a1eee"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga8fe6995ae9949b8c827ba510851a1eee">Cy_TCPWM_QuadDec_GetCapture1BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga8fe6995ae9949b8c827ba510851a1eee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the buffered capture 1 value when capture mode is enabled.  <a href="#ga8fe6995ae9949b8c827ba510851a1eee">More...</a><br /></td></tr>
<tr class="separator:ga8fe6995ae9949b8c827ba510851a1eee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga12ce56da1b261d2cc0660e0328f2aa11"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga12ce56da1b261d2cc0660e0328f2aa11">Cy_TCPWM_QuadDec_GetCompare1Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga12ce56da1b261d2cc0660e0328f2aa11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns compare 1 value.  <a href="#ga12ce56da1b261d2cc0660e0328f2aa11">More...</a><br /></td></tr>
<tr class="separator:ga12ce56da1b261d2cc0660e0328f2aa11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga737b47188d399802dff437923cc2e49a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga737b47188d399802dff437923cc2e49a">Cy_TCPWM_QuadDec_GetCompare1BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga737b47188d399802dff437923cc2e49a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the buffered compare 1 value.  <a href="#ga737b47188d399802dff437923cc2e49a">More...</a><br /></td></tr>
<tr class="separator:ga737b47188d399802dff437923cc2e49a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ae62a43ae9cd554f17e0df29f449d83"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga5ae62a43ae9cd554f17e0df29f449d83">Cy_TCPWM_QuadDec_SetCompare1Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compare1)</td></tr>
<tr class="memdesc:ga5ae62a43ae9cd554f17e0df29f449d83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the compare value for Compare 1 when the compare mode enabled.  <a href="#ga5ae62a43ae9cd554f17e0df29f449d83">More...</a><br /></td></tr>
<tr class="separator:ga5ae62a43ae9cd554f17e0df29f449d83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5406f3d1a0c22d6416ffdbb44160f878"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga5406f3d1a0c22d6416ffdbb44160f878">Cy_TCPWM_QuadDec_SetCompare1BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compareBuf1)</td></tr>
<tr class="memdesc:ga5406f3d1a0c22d6416ffdbb44160f878"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the buffered compare value for Compare 1 when the compare mode enabled.  <a href="#ga5406f3d1a0c22d6416ffdbb44160f878">More...</a><br /></td></tr>
<tr class="separator:ga5406f3d1a0c22d6416ffdbb44160f878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3a980d51e9c5eb49bdd56d0f198c0473"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga3a980d51e9c5eb49bdd56d0f198c0473">Cy_TCPWM_QuadDec_EnableCompare1Swap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga3a980d51e9c5eb49bdd56d0f198c0473"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the comparison swap of compare 1 and compareBuf 1 when the comparison value is true.  <a href="#ga3a980d51e9c5eb49bdd56d0f198c0473">More...</a><br /></td></tr>
<tr class="separator:ga3a980d51e9c5eb49bdd56d0f198c0473"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1a0d440ee56f8cd38427fe19acf50575"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga1a0d440ee56f8cd38427fe19acf50575">Cy_TCPWM_QuadDec_SetPeriod0</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t period0)</td></tr>
<tr class="memdesc:ga1a0d440ee56f8cd38427fe19acf50575"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of the period register.  <a href="#ga1a0d440ee56f8cd38427fe19acf50575">More...</a><br /></td></tr>
<tr class="separator:ga1a0d440ee56f8cd38427fe19acf50575"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga509f586f98d9d35393c646528f7c235c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga509f586f98d9d35393c646528f7c235c">Cy_TCPWM_QuadDec_GetPeriod0</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga509f586f98d9d35393c646528f7c235c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value in the period 0 register.  <a href="#ga509f586f98d9d35393c646528f7c235c">More...</a><br /></td></tr>
<tr class="separator:ga509f586f98d9d35393c646528f7c235c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa8b2bc2968df3e99061b14001a132f09"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#gaa8b2bc2968df3e99061b14001a132f09">Cy_TCPWM_QuadDec_SetPeriod1</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t period1)</td></tr>
<tr class="memdesc:gaa8b2bc2968df3e99061b14001a132f09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of the period register.  <a href="#gaa8b2bc2968df3e99061b14001a132f09">More...</a><br /></td></tr>
<tr class="separator:gaa8b2bc2968df3e99061b14001a132f09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga36f1cf9209dc8fb70c40d46804072c24"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga36f1cf9209dc8fb70c40d46804072c24">Cy_TCPWM_QuadDec_GetPeriod1</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga36f1cf9209dc8fb70c40d46804072c24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value in the period 1 register.  <a href="#ga36f1cf9209dc8fb70c40d46804072c24">More...</a><br /></td></tr>
<tr class="separator:ga36f1cf9209dc8fb70c40d46804072c24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0580390faff1cb686a5cd1b9fef6cf4"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#gaf0580390faff1cb686a5cd1b9fef6cf4">Cy_TCPWM_QuadDec_TriggerIndex1</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gaf0580390faff1cb686a5cd1b9fef6cf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a software index 1.  <a href="#gaf0580390faff1cb686a5cd1b9fef6cf4">More...</a><br /></td></tr>
<tr class="separator:gaf0580390faff1cb686a5cd1b9fef6cf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6bbffc52d3ebef41c39336b4b9444341"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__quaddec.html#ga6bbffc52d3ebef41c39336b4b9444341">Cy_TCPWM_QuadDec_EnableSwap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga6bbffc52d3ebef41c39336b4b9444341"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT.  <a href="#ga6bbffc52d3ebef41c39336b4b9444341">More...</a><br /></td></tr>
<tr class="separator:ga6bbffc52d3ebef41c39336b4b9444341"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gad1949f233fc99ae5681094b5f6a499bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad1949f233fc99ae5681094b5f6a499bc">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a> Cy_TCPWM_QuadDec_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the counter in the TCPWM block for the QuadDec operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. See <a class="el" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error / status code. See <a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a> tcpwm_v1_qd_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .resolution        = */</span> <a class="code" href="group__group__tcpwm__quaddec__resolution.html#ga218c2bf6b15989e182676b70b4bff85a">CY_TCPWM_QUADDEC_X1</a>, <span class="comment">/* One count during one encoder cycle */</span></div><div class="line">        <span class="comment">/* .interruptSources  = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>,  <span class="comment">/* Simple example without index input */</span></div><div class="line">        <span class="comment">/* .indexInputMode    = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* The default value (0UL) */</span></div><div class="line">        <span class="comment">/* .indexInput        = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* The index input is not used */</span></div><div class="line">        <span class="comment">/* .stopInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* The default value (0UL) */</span></div><div class="line">        <span class="comment">/* .stopInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* The stop input is not used, the block will be stopped by SW */</span></div><div class="line">        <span class="comment">/* .phiAInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#gabe343e8f0821b0b0a5853f11b0da2f47">CY_TCPWM_INPUT_TRIG_0</a>, <span class="comment">/* The phiA input is connected to the trigger multiplexer #0 of the Trigger Group #3 */</span></div><div class="line">        <span class="comment">/* .phiBInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#gaae060090a4a95ad4b6ae724c715effa9">CY_TCPWM_INPUT_TRIG_1</a>,  <span class="comment">/* The phiB input is connected to the trigger multiplexer #1 of the Trigger Group #3 */</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__quaddec.html#gad1949f233fc99ae5681094b5f6a499bc">Cy_TCPWM_QuadDec_Init</a>(TCPWM0, MY_TCPWM_CNT_NUM, &amp;tcpwm_v1_qd_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line">    <span class="comment">/* Enabled the initialized quadrature decoder */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga749543ff6e63948f009d4d67f3875b53">Cy_TCPWM_QuadDec_Enable</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Then start the decoder */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a> tcpwm_v2_qd_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .resolution        = */</span> <a class="code" href="group__group__tcpwm__quaddec__resolution.html#ga218c2bf6b15989e182676b70b4bff85a">CY_TCPWM_QUADDEC_X1</a>, <span class="comment">/* One count during one encoder cycle */</span></div><div class="line">        <span class="comment">/* .interruptSources  = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>,  <span class="comment">/* Simple example without index input */</span></div><div class="line">        <span class="comment">/* .indexInputMode    = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* The default value (0UL) */</span></div><div class="line">        <span class="comment">/* .indexInput        = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* The index input is not used */</span></div><div class="line">        <span class="comment">/* .stopInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* The default value (0UL) */</span></div><div class="line">        <span class="comment">/* .stopInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* The stop input is not used, the block will be stopped by SW */</span></div><div class="line">        <span class="comment">/* .phiAInput         = */</span> CY_TCPWM_INPUT_TRIG(0), <span class="comment">/* The phiA input is connected to the trigger multiplexer #0 of the Trigger Group #3 */</span></div><div class="line">        <span class="comment">/* .phiBInput         = */</span> CY_TCPWM_INPUT_TRIG(1),  <span class="comment">/* The phiB input is connected to the trigger multiplexer #1 of the Trigger Group #3 */</span></div><div class="line">        <span class="comment">/* .phiAInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Pass through (no edge detection) */</span></div><div class="line">        <span class="comment">/* .phiBInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Pass through (no edge detection) */</span></div><div class="line">        <span class="comment">/* .quadmode          = */</span> <a class="code" href="group__group__tcpwm__quaddec__mode.html#ga1bde5608416e3470da46565196e2f2e3">CY_TCPWM_QUADDEC_MODE_RANGE0</a>, <span class="comment">/* Quad mode */</span></div><div class="line">        <span class="comment">/* .period0           = */</span> 0UL, <span class="comment">/* Period 0 Value */</span></div><div class="line">        <span class="comment">/* .captureOnIndex    = */</span> <a class="code" href="group__group__tcpwm__quaddec__capture__mode.html#gadba620a2c63dd73dbaecaac505b65ae3">CY_TCPWM_QUADDEC_CAPTURE_ON_INDEX</a>, <span class="comment">/* Capture On Index event */</span></div><div class="line">        <span class="comment">/* .compare0          = */</span> 0Ul, <span class="comment">/* Sets the value for Compare 0 */</span></div><div class="line">        <span class="comment">/* .compareBuf0       = */</span> 0UL, <span class="comment">/* Sets the value for the buffered Compare 0 */</span></div><div class="line">        <span class="comment">/* .enableCompare0Swap = */</span> <span class="keyword">false</span>, <span class="comment">/*  If enabled, the compare 0 values are swapped on the terminal count */</span></div><div class="line">        <span class="comment">/* .compare1          = */</span> 0UL, <span class="comment">/* Sets the value for Compare 1 */</span></div><div class="line">        <span class="comment">/* .compareBuf1       = */</span> 0UL, <span class="comment">/* Sets the value for the buffered Compare 0 */</span></div><div class="line">        <span class="comment">/* .enableCompare1Swap = */</span> <span class="keyword">false</span>, <span class="comment">/*  If enabled, the compare 0 values are swapped on the terminal count */</span></div><div class="line">        <span class="comment">/* .capture0OrIndex1InputMode = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* Configures how the capture0/index1 input behaves.*/</span></div><div class="line">        <span class="comment">/* .capture0OrIndex1Input = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* Selects which input the capture0/index1 uses. The inputs are device-specific. */</span></div><div class="line">        <span class="comment">/* .capture1InputMode = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* Configures how the capture1 input behaves. */</span></div><div class="line">        <span class="comment">/* .capture1Input     = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* Selects which input the capture1 uses. The inputs are device-specific. */</span></div><div class="line">        <span class="comment">/* .trigger0Event     = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger0 event generation*/</span></div><div class="line">        <span class="comment">/* .trigger1Event     = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger1 event generation*/</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__quaddec.html#gad1949f233fc99ae5681094b5f6a499bc">Cy_TCPWM_QuadDec_Init</a>(TCPWM0, MY_TCPWM_CNT_NUM, &amp;tcpwm_v2_qd_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line">    <span class="comment">/* Enabled the initialized quadrature decoder */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga749543ff6e63948f009d4d67f3875b53">Cy_TCPWM_QuadDec_Enable</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    </div><div class="line">    <span class="comment">/* Then start the decoder */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaa82082c6d45aeda630fba873d15cc205"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa82082c6d45aeda630fba873d15cc205">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_TCPWM_QuadDec_DeInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes the counter in the TCPWM block, returns register values to default. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. See <a class="el" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to deinitialize the previously initialized block */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line">    </div><div class="line">    <span class="comment">/* Disable the counter prior to deinitializing */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gabaf6e9fd4b30c5bf35cf45ff3ab57f68">Cy_TCPWM_QuadDec_Disable</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaa82082c6d45aeda630fba873d15cc205">Cy_TCPWM_QuadDec_DeInit</a>(TCPWM0, MY_TCPWM_CNT_NUM, &amp;config);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga749543ff6e63948f009d4d67f3875b53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga749543ff6e63948f009d4d67f3875b53">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_Enable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the counter in the TCPWM block for the QuadDec operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a> tcpwm_v1_qd_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .resolution        = */</span> <a class="code" href="group__group__tcpwm__quaddec__resolution.html#ga218c2bf6b15989e182676b70b4bff85a">CY_TCPWM_QUADDEC_X1</a>, <span class="comment">/* One count during one encoder cycle */</span></div><div class="line">        <span class="comment">/* .interruptSources  = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>,  <span class="comment">/* Simple example without index input */</span></div><div class="line">        <span class="comment">/* .indexInputMode    = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* The default value (0UL) */</span></div><div class="line">        <span class="comment">/* .indexInput        = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* The index input is not used */</span></div><div class="line">        <span class="comment">/* .stopInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* The default value (0UL) */</span></div><div class="line">        <span class="comment">/* .stopInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* The stop input is not used, the block will be stopped by SW */</span></div><div class="line">        <span class="comment">/* .phiAInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#gabe343e8f0821b0b0a5853f11b0da2f47">CY_TCPWM_INPUT_TRIG_0</a>, <span class="comment">/* The phiA input is connected to the trigger multiplexer #0 of the Trigger Group #3 */</span></div><div class="line">        <span class="comment">/* .phiBInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#gaae060090a4a95ad4b6ae724c715effa9">CY_TCPWM_INPUT_TRIG_1</a>,  <span class="comment">/* The phiB input is connected to the trigger multiplexer #1 of the Trigger Group #3 */</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__quaddec.html#gad1949f233fc99ae5681094b5f6a499bc">Cy_TCPWM_QuadDec_Init</a>(TCPWM0, MY_TCPWM_CNT_NUM, &amp;tcpwm_v1_qd_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line">    <span class="comment">/* Enabled the initialized quadrature decoder */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga749543ff6e63948f009d4d67f3875b53">Cy_TCPWM_QuadDec_Enable</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Then start the decoder */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__quaddec__config__t.html">cy_stc_tcpwm_quaddec_config_t</a> tcpwm_v2_qd_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .resolution        = */</span> <a class="code" href="group__group__tcpwm__quaddec__resolution.html#ga218c2bf6b15989e182676b70b4bff85a">CY_TCPWM_QUADDEC_X1</a>, <span class="comment">/* One count during one encoder cycle */</span></div><div class="line">        <span class="comment">/* .interruptSources  = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>,  <span class="comment">/* Simple example without index input */</span></div><div class="line">        <span class="comment">/* .indexInputMode    = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* The default value (0UL) */</span></div><div class="line">        <span class="comment">/* .indexInput        = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* The index input is not used */</span></div><div class="line">        <span class="comment">/* .stopInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* The default value (0UL) */</span></div><div class="line">        <span class="comment">/* .stopInput         = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* The stop input is not used, the block will be stopped by SW */</span></div><div class="line">        <span class="comment">/* .phiAInput         = */</span> CY_TCPWM_INPUT_TRIG(0), <span class="comment">/* The phiA input is connected to the trigger multiplexer #0 of the Trigger Group #3 */</span></div><div class="line">        <span class="comment">/* .phiBInput         = */</span> CY_TCPWM_INPUT_TRIG(1),  <span class="comment">/* The phiB input is connected to the trigger multiplexer #1 of the Trigger Group #3 */</span></div><div class="line">        <span class="comment">/* .phiAInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Pass through (no edge detection) */</span></div><div class="line">        <span class="comment">/* .phiBInputMode     = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Pass through (no edge detection) */</span></div><div class="line">        <span class="comment">/* .quadmode          = */</span> <a class="code" href="group__group__tcpwm__quaddec__mode.html#ga1bde5608416e3470da46565196e2f2e3">CY_TCPWM_QUADDEC_MODE_RANGE0</a>, <span class="comment">/* Quad mode */</span></div><div class="line">        <span class="comment">/* .period0           = */</span> 0UL, <span class="comment">/* Period 0 Value */</span></div><div class="line">        <span class="comment">/* .captureOnIndex    = */</span> <a class="code" href="group__group__tcpwm__quaddec__capture__mode.html#gadba620a2c63dd73dbaecaac505b65ae3">CY_TCPWM_QUADDEC_CAPTURE_ON_INDEX</a>, <span class="comment">/* Capture On Index event */</span></div><div class="line">        <span class="comment">/* .compare0          = */</span> 0Ul, <span class="comment">/* Sets the value for Compare 0 */</span></div><div class="line">        <span class="comment">/* .compareBuf0       = */</span> 0UL, <span class="comment">/* Sets the value for the buffered Compare 0 */</span></div><div class="line">        <span class="comment">/* .enableCompare0Swap = */</span> <span class="keyword">false</span>, <span class="comment">/*  If enabled, the compare 0 values are swapped on the terminal count */</span></div><div class="line">        <span class="comment">/* .compare1          = */</span> 0UL, <span class="comment">/* Sets the value for Compare 1 */</span></div><div class="line">        <span class="comment">/* .compareBuf1       = */</span> 0UL, <span class="comment">/* Sets the value for the buffered Compare 0 */</span></div><div class="line">        <span class="comment">/* .enableCompare1Swap = */</span> <span class="keyword">false</span>, <span class="comment">/*  If enabled, the compare 0 values are swapped on the terminal count */</span></div><div class="line">        <span class="comment">/* .capture0OrIndex1InputMode = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* Configures how the capture0/index1 input behaves.*/</span></div><div class="line">        <span class="comment">/* .capture0OrIndex1Input = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* Selects which input the capture0/index1 uses. The inputs are device-specific. */</span></div><div class="line">        <span class="comment">/* .capture1InputMode = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* Configures how the capture1 input behaves. */</span></div><div class="line">        <span class="comment">/* .capture1Input     = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>, <span class="comment">/* Selects which input the capture1 uses. The inputs are device-specific. */</span></div><div class="line">        <span class="comment">/* .trigger0Event     = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger0 event generation*/</span></div><div class="line">        <span class="comment">/* .trigger1Event     = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger1 event generation*/</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__quaddec.html#gad1949f233fc99ae5681094b5f6a499bc">Cy_TCPWM_QuadDec_Init</a>(TCPWM0, MY_TCPWM_CNT_NUM, &amp;tcpwm_v2_qd_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line">    <span class="comment">/* Enabled the initialized quadrature decoder */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga749543ff6e63948f009d4d67f3875b53">Cy_TCPWM_QuadDec_Enable</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    </div><div class="line">    <span class="comment">/* Then start the decoder */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gabaf6e9fd4b30c5bf35cf45ff3ab57f68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabaf6e9fd4b30c5bf35cf45ff3ab57f68">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_Disable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the counter in the TCPWM block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to deinitialize the previously initialized block */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line">    </div><div class="line">    <span class="comment">/* Disable the counter prior to deinitializing */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gabaf6e9fd4b30c5bf35cf45ff3ab57f68">Cy_TCPWM_QuadDec_Disable</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaa82082c6d45aeda630fba873d15cc205">Cy_TCPWM_QuadDec_DeInit</a>(TCPWM0, MY_TCPWM_CNT_NUM, &amp;config);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga44dc33f42820e7539bcac89efc9418db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga44dc33f42820e7539bcac89efc9418db">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the status of the QuadDec whether it is running or not. </p>
<p>In case the QuadDec is running, status will also provide information on counting up/down.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status. See <a class="el" href="group__group__tcpwm__quaddec__status.html">QuadDec Status</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>The status value is not the same as in TCPWM status register.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to check if</span></div><div class="line"><span class="comment">     * the first (index = 0) quadrature decoder of the TCPWM0 block is running or not.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line">    </div><div class="line">    uint32_t status = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga44dc33f42820e7539bcac89efc9418db">Cy_TCPWM_QuadDec_GetStatus</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> ((<a class="code" href="group__group__tcpwm__quaddec__status.html#ga7b76096f316211ed3d83e467e648630e">CY_TCPWM_QUADDEC_STATUS_COUNTER_RUNNING</a> &amp; status) &amp;&amp; (<a class="code" href="group__group__tcpwm__quaddec__status.html#gaa755a38518a8fc324c7889cae6fd3853">CY_TCPWM_QUADDEC_STATUS_UP_COUNTING</a> &amp; status))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Up Counting */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((<a class="code" href="group__group__tcpwm__quaddec__status.html#ga7b76096f316211ed3d83e467e648630e">CY_TCPWM_QUADDEC_STATUS_COUNTER_RUNNING</a> &amp; status) &amp;&amp; (<a class="code" href="group__group__tcpwm__quaddec__status.html#gaa75555f209701b17605a9e484959f0f2">CY_TCPWM_QUADDEC_STATUS_DOWN_COUNTING</a> &amp; status))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Down Counting */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* QuadDec is not running */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaacd82b81ec3a504c3628727e61d866d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaacd82b81ec3a504c3628727e61d866d7">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCapture0Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCapture0Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the capture value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The capture value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to get the capture values of</span></div><div class="line"><span class="comment">     * the first (index = 0) quadrature decoder of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line">    </div><div class="line">    <span class="comment">/* The capture event can be triggered either by the Index HW input</span></div><div class="line"><span class="comment">     * or by software:</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <span class="comment">/* after some time or encoder moving */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    </div><div class="line">    <span class="comment">/* Now we can get the latest captured value </span></div><div class="line"><span class="comment">     * (captured during the second call of Cy_TCPWM_TriggerReloadOrIndex_Single)</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    uint32_t capture = <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaacd82b81ec3a504c3628727e61d866d7">Cy_TCPWM_QuadDec_GetCapture0Val</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <span class="comment">/* Also the previous captured value</span></div><div class="line"><span class="comment">     * (captured during the first call of Cy_TCPWM_TriggerReloadOrIndex_Single)</span></div><div class="line"><span class="comment">     * is available by the next way</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    uint32_t captureBuf = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga6792f4bd0fe698328cbb487cc46e53cb">Cy_TCPWM_QuadDec_GetCapture0BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga6792f4bd0fe698328cbb487cc46e53cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6792f4bd0fe698328cbb487cc46e53cb">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCapture0BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCapture0BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the buffered capture value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The buffered capture value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to get the capture values of</span></div><div class="line"><span class="comment">     * the first (index = 0) quadrature decoder of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line">    </div><div class="line">    <span class="comment">/* The capture event can be triggered either by the Index HW input</span></div><div class="line"><span class="comment">     * or by software:</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <span class="comment">/* after some time or encoder moving */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    </div><div class="line">    <span class="comment">/* Now we can get the latest captured value </span></div><div class="line"><span class="comment">     * (captured during the second call of Cy_TCPWM_TriggerReloadOrIndex_Single)</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    uint32_t capture = <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaacd82b81ec3a504c3628727e61d866d7">Cy_TCPWM_QuadDec_GetCapture0Val</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <span class="comment">/* Also the previous captured value</span></div><div class="line"><span class="comment">     * (captured during the first call of Cy_TCPWM_TriggerReloadOrIndex_Single)</span></div><div class="line"><span class="comment">     * is available by the next way</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    uint32_t captureBuf = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga6792f4bd0fe698328cbb487cc46e53cb">Cy_TCPWM_QuadDec_GetCapture0BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaa8538a498c6bf6030a9a9c3d4cfaec8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa8538a498c6bf6030a9a9c3d4cfaec8d">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_SetCompare0Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_SetCompare0Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compare0</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the compare value for Compare0 when the compare mode is enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compare0</td><td>The Compare 0 value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set compare 0 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t compare0 = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaa8538a498c6bf6030a9a9c3d4cfaec8d">Cy_TCPWM_QuadDec_SetCompare0Val</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    compare0 = <a class="code" href="group__group__tcpwm__functions__quaddec.html#gac0819a3dafbb55d93d00ab68db3f3f53">Cy_TCPWM_QuadDec_GetCompare0Val</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gac0819a3dafbb55d93d00ab68db3f3f53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac0819a3dafbb55d93d00ab68db3f3f53">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCompare0Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCompare0Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns compare 0 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Compare 0 value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set compare 0 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t compare0 = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaa8538a498c6bf6030a9a9c3d4cfaec8d">Cy_TCPWM_QuadDec_SetCompare0Val</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    compare0 = <a class="code" href="group__group__tcpwm__functions__quaddec.html#gac0819a3dafbb55d93d00ab68db3f3f53">Cy_TCPWM_QuadDec_GetCompare0Val</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga581b385538b49cb689d5ee3c0ca4ede9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga581b385538b49cb689d5ee3c0ca4ede9">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_SetCompare0BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_SetCompare0BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compareBuf0</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the Buffered Compare 0 value when the compare mode is enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compareBuf0</td><td>The Buffered Compare 0 value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set buffered compare 0 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t compare0buff = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga581b385538b49cb689d5ee3c0ca4ede9">Cy_TCPWM_QuadDec_SetCompare0BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    compare0buff = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga8241af740cee0d91c5ab839308eab0a5">Cy_TCPWM_QuadDec_GetCompare0BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga8241af740cee0d91c5ab839308eab0a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8241af740cee0d91c5ab839308eab0a5">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCompare0BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCompare0BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns Buffered Compare 0 Value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Buffered Compare 0 Value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set buffered compare 0 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t compare0buff = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga581b385538b49cb689d5ee3c0ca4ede9">Cy_TCPWM_QuadDec_SetCompare0BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    compare0buff = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga8241af740cee0d91c5ab839308eab0a5">Cy_TCPWM_QuadDec_GetCompare0BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga86f74f160f2b7a5b8f61f424546e10c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga86f74f160f2b7a5b8f61f424546e10c9">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_EnableCompare0Swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_EnableCompare0Swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the comparison swap of compare 0 and compareBuf 0 when the comparison value is true. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled, false = swap disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to swap compare 0 and compare 0 buffer values</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga86f74f160f2b7a5b8f61f424546e10c9">Cy_TCPWM_QuadDec_EnableCompare0Swap</a>(TCPWM0, MY_TCPWM_CNT_NUM, <span class="keyword">true</span>);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga8e28d44c620903493a666dbacbcd0c60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8e28d44c620903493a666dbacbcd0c60">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_SetCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_SetCounter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the value of the counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">count</td><td>The value to write into the counter.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the counter value for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_VAL   (0x8000UL) </span><span class="comment">/* The &quot;neutral&quot; position for 16-bit decoder */</span><span class="preprocessor"></span></div><div class="line">    </div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad1459b0ddabf388afe151de57f7cf4d4">Cy_TCPWM_TriggerStopOrKill_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga8e28d44c620903493a666dbacbcd0c60">Cy_TCPWM_QuadDec_SetCounter</a>(TCPWM0, MY_TCPWM_CNT_NUM, MY_TCPWM_CNT_VAL);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga63db0601fd880a5afaddd753fb2d7919"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga63db0601fd880a5afaddd753fb2d7919">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCounter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value in the counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current counter value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to get the current counter value</span></div><div class="line"><span class="comment">     * (i.e. essentially the current position of the quadrature encoder)</span></div><div class="line"><span class="comment">     * of the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t count = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga63db0601fd880a5afaddd753fb2d7919">Cy_TCPWM_QuadDec_GetCounter</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga3c58e92f541802bdd79435131ec69bd0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c58e92f541802bdd79435131ec69bd0">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCapture1Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCapture1Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns capture 1 value when capture mode is enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Capture 1 value. </dd></dl>

</div>
</div>
<a id="ga8fe6995ae9949b8c827ba510851a1eee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8fe6995ae9949b8c827ba510851a1eee">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCapture1BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCapture1BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the buffered capture 1 value when capture mode is enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Buffered capture 1 value. </dd></dl>

</div>
</div>
<a id="ga12ce56da1b261d2cc0660e0328f2aa11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga12ce56da1b261d2cc0660e0328f2aa11">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCompare1Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCompare1Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns compare 1 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Compare 1 value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set compare 1 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t compare1 = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga5ae62a43ae9cd554f17e0df29f449d83">Cy_TCPWM_QuadDec_SetCompare1Val</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    compare1 = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga12ce56da1b261d2cc0660e0328f2aa11">Cy_TCPWM_QuadDec_GetCompare1Val</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga737b47188d399802dff437923cc2e49a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga737b47188d399802dff437923cc2e49a">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetCompare1BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCompare1BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the buffered compare 1 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Buffered compare 1 value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set compare 1 buffer value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t compare1buff = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga5406f3d1a0c22d6416ffdbb44160f878">Cy_TCPWM_QuadDec_SetCompare1BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    compare1buff = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga737b47188d399802dff437923cc2e49a">Cy_TCPWM_QuadDec_GetCompare1BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga5ae62a43ae9cd554f17e0df29f449d83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5ae62a43ae9cd554f17e0df29f449d83">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_SetCompare1Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_SetCompare1Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compare1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the compare value for Compare 1 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compare1</td><td>The Compare 1 value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set compare 1 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t compare1 = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga5ae62a43ae9cd554f17e0df29f449d83">Cy_TCPWM_QuadDec_SetCompare1Val</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    compare1 = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga12ce56da1b261d2cc0660e0328f2aa11">Cy_TCPWM_QuadDec_GetCompare1Val</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga5406f3d1a0c22d6416ffdbb44160f878"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5406f3d1a0c22d6416ffdbb44160f878">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_SetCompare1BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_SetCompare1BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compareBuf1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the buffered compare value for Compare 1 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compareBuf1</td><td>The buffered Compare 1 value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set compare 1 buffer value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t compare1buff = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga5406f3d1a0c22d6416ffdbb44160f878">Cy_TCPWM_QuadDec_SetCompare1BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    compare1buff = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga737b47188d399802dff437923cc2e49a">Cy_TCPWM_QuadDec_GetCompare1BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga3a980d51e9c5eb49bdd56d0f198c0473"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3a980d51e9c5eb49bdd56d0f198c0473">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_EnableCompare1Swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_EnableCompare1Swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the comparison swap of compare 1 and compareBuf 1 when the comparison value is true. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to swap compare 1 and compare 1 buffer values</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga3a980d51e9c5eb49bdd56d0f198c0473">Cy_TCPWM_QuadDec_EnableCompare1Swap</a>(TCPWM0, MY_TCPWM_CNT_NUM, <span class="keyword">true</span>);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga1a0d440ee56f8cd38427fe19acf50575"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1a0d440ee56f8cd38427fe19acf50575">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_SetPeriod0()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_SetPeriod0 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>period0</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the value of the period register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">period0</td><td>The value to write into a period.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set period 0 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t period0 = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga1a0d440ee56f8cd38427fe19acf50575">Cy_TCPWM_QuadDec_SetPeriod0</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    period0 = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga509f586f98d9d35393c646528f7c235c">Cy_TCPWM_QuadDec_GetPeriod0</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga509f586f98d9d35393c646528f7c235c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga509f586f98d9d35393c646528f7c235c">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetPeriod0()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetPeriod0 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value in the period 0 register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current period value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set period 0 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t period0 = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga1a0d440ee56f8cd38427fe19acf50575">Cy_TCPWM_QuadDec_SetPeriod0</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    period0 = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga509f586f98d9d35393c646528f7c235c">Cy_TCPWM_QuadDec_GetPeriod0</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaa8b2bc2968df3e99061b14001a132f09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa8b2bc2968df3e99061b14001a132f09">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_SetPeriod1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_SetPeriod1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>period1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the value of the period register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">period1</td><td>The value to write into a period 1.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set period 1 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t period1 = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaa8b2bc2968df3e99061b14001a132f09">Cy_TCPWM_QuadDec_SetPeriod1</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    period1 = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga36f1cf9209dc8fb70c40d46804072c24">Cy_TCPWM_QuadDec_GetPeriod1</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --><ul>
<li></li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver2 </dd></dl>

</div>
</div>
<a id="ga36f1cf9209dc8fb70c40d46804072c24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga36f1cf9209dc8fb70c40d46804072c24">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_GetPeriod1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetPeriod1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value in the period 1 register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current period 1 value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set period 1 value</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t period1 = 0uL;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaa8b2bc2968df3e99061b14001a132f09">Cy_TCPWM_QuadDec_SetPeriod1</a>(TCPWM0, MY_TCPWM_CNT_NUM, 255U);</div><div class="line"></div><div class="line">    period1 = <a class="code" href="group__group__tcpwm__functions__quaddec.html#ga36f1cf9209dc8fb70c40d46804072c24">Cy_TCPWM_QuadDec_GetPeriod1</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver2 </dd></dl>

</div>
</div>
<a id="gaf0580390faff1cb686a5cd1b9fef6cf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf0580390faff1cb686a5cd1b9fef6cf4">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_TriggerIndex1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_TriggerIndex1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a software index 1. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to trigger Index1 event</span></div><div class="line"><span class="comment">      * for the first (index = 0) quadrature decoder of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__quaddec.html#gaf0580390faff1cb686a5cd1b9fef6cf4">Cy_TCPWM_QuadDec_TriggerIndex1</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga6bbffc52d3ebef41c39336b4b9444341"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6bbffc52d3ebef41c39336b4b9444341">&#9670;&nbsp;</a></span>Cy_TCPWM_QuadDec_EnableSwap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_QuadDec_EnableSwap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
